class Solution(object):
    def moveZeroes(self, nums):
        """
        :type nums: List[int]
        :rtype: None Do not return anything, modify nums in-place instead.
        """
        for i in range(len(nums)):
            if not nums[i]:
                for j in range(i+1, len(nums)):
                    if nums[j]:
                        nums[i] = nums[j]
                        nums[j] = 0
                        break
            print(nums)


test = Solution()
print(test.moveZeroes([0,1,0,3,12]))